﻿using UnityEngine;
using System.Collections;

public class ShotExplosion : MonoBehaviour {
	
	public Transform ExplosionPrefab;
	public GameObject ship; 
	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
		
	}
	
	void OnCollisionEnter (Collision col) {
		
		
		
		if(col.gameObject.tag != "Player")
		{
			Instantiate(ExplosionPrefab, transform.position, Quaternion.identity);
			Destroy(gameObject);
		}
	}
}
